package com.kun.video.ui.dialog.message;

/**
 * TODO
 *
 * @author gzc
 * @since 2025/3/15
 **/
public class PopupConfig {
    /**
     * 延时关闭时间(毫秒)
     */
    private long timed;
    /**
     * 提示信息
     */
    private String message;
    /**
     * 提示框背景颜色
     */
    private String backgroundColor;
    /**
     * 提示框文字颜色
     */
    private String fontColor;
    /**
     * 样式
     */
    private String style;
    /**
     * svg图片路径
     */
    private String svgPath;

    private PopupConfig() {
    }

    /**
     * 构建者
     */
    public static PopupConfig builder() {
        PopupConfig popupConfig = new PopupConfig();
        popupConfig.timed(3000);
        popupConfig.message("");
        popupConfig.fontColor("#FAF7F7");
        popupConfig.backgroundColor("#565353");
        return popupConfig;
    }

    public PopupConfig timed(long timed) {
        this.timed = timed;
        return this;
    }

    public PopupConfig message(String message) {
        this.message = message;
        return this;
    }

    public PopupConfig backgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
        return this;
    }

    public PopupConfig fontColor(String fontColor) {
        this.fontColor = fontColor;
        return this;
    }

    public PopupConfig style(String style) {
        this.style = style;
        return this;
    }

    public PopupConfig svgPath(String svgPath) {
        this.svgPath = svgPath;
        return this;
    }

    public PopupConfig build() {
        return this;
    }

    public long getTimed() {
        return timed;
    }

    public void setTimed(long timed) {
        this.timed = timed;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getBackgroundColor() {
        return backgroundColor;
    }

    public void setBackgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getSvgPath() {
        return svgPath;
    }

    public void setSvgPath(String svgPath) {
        this.svgPath = svgPath;
    }
}
